﻿@model PhotoGallery.Models.VideoInfo
@using PhotoGallery.Views
@{
    ViewBag.Title = "Delete";
}

<h2>@Labels.delete</h2>
<div>@ViewBag.ErrorMsg</div>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>@Labels.video</legend>

        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.FileName)
        @Html.HiddenFor(model => model.Thumbnail)
        @*<img alt="@Model.Description" src="@Url.Action("Thumbnail", new { file = Model.FullThumbnailName })" />*@
        <img alt="@Model.Title"  src="@Url.Content(Model.UrlThumbnail)" />   
        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Title)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.UploadDate)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.UploadDate)
        </div>
        <p>
            <input type="submit" value="@Labels.delete" />
            @*@Html.ActionLink(Labels.cancel, "Index")*@
            <a href="@Html.Encode(Request.UrlReferrer.ToString())"  class="button-link-100">@Labels.cancel </a>
       </p>
    </fieldset>
}